#!/bin/sh

# Run from this directory
cd "${0%/*}" || exit 1

# Source tutorial run functions
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"

runApplication snappyHexMeshConfig \
    -cylindricalBackground \
    -rotatingZones 'rotatingZone' \
    -surfaceLevels "(sparger 3) (stirrer 3)" \
    -baffles "baffles"

runApplication blockMesh
runApplication decomposePar -copyZero
runParallel snappyHexMesh

runParallel setFields
runApplication reconstructPar -withZero -fields '(alpha.gas alpha.liquid)'

runParallel foamRun
runApplication -a reconstructPar

( cd validation && ./createGraphs )

#------------------------------------------------------------------------------
